package com.biomatch.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.biomatch.domain.CourseOrder;
import com.biomatch.domain.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface CourseOrderMapper extends BaseMapper<CourseOrder>{
    long findCountByMap(Map<String, Object> params);

    List<CourseOrder> selectCourseOrderList(Map<String, Object> params);

    void insertTeacherAndCourse(@Param(value = "teacherId") String teacherId, @Param(value = "courseId") String courseId);

    void deleteCourseAndTeacherId(String courseId);


    long findCountByTeacherId(Map<String, Object> params);

    List<CourseOrder> getCourseByTeacherId(Map<String, Object> params);

    void deleteOneCourse(String courseId);
}
